import apis from './'
import request from '@/utils/request'

export function getStats (parameter) {
  return request({
    url: apis.StatsList,
    method: 'get',
    params: parameter
  })
}

export function getInvoiceStats (parameter) {
  return request({
    url: apis.InvoiceStats,
    method: 'get',
    params: parameter
  })
}

export function getStatsBusiness (parameter) {
  return request({
    url: apis.StatsBusiness,
    method: 'get',
    params: parameter
  })
}

export function importFees (id = '', data) {
  return request({
    url: `${apis.UploadFees}?business_id=${id}`,
    method: 'post',
    data: data
  })
}

export function getBusinessSum (parameter) {
  return request({
    url: apis.BusinessNumState,
    method: 'get',
    params: parameter
  })
}
